﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace JXC.Core.Models
{
    /// <summary>
    /// 报价单明细
    /// </summary>
    public class QuotationSheetDetails
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; } //报价明细单号

        [ForeignKey("CommodityInformationSheetId")]
        public Guid Commodity { get; set; } //商品

        public decimal UnitPrice { get; set; } //单价
        [ForeignKey("QuotationId")]
        public Guid QuotationNo { get; set; }//报价单号

        public int Quantity { get; set; }//数量
        public CommodityInformationSheet CommodityInformationSheet { get; set; }
        public Quotation Quotation { get; set; }

    }
}
